package com.zhmc.myapplication;

import android.content.DialogInterface;
import android.graphics.Color;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import androidx.appcompat.app.AlertDialog;

public class TransActivity extends MyBaseActivity {
    /* access modifiers changed from: protected */
    @Override
    // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.fragment.app.FragmentActivity, com.zhmc.myapplication.MyBaseActivity
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_trans);
        findViewById(R.id.tv).setOnClickListener(new View.OnClickListener() {
            /* class com.zhmc.myapplication.TransActivity.AnonymousClass1 */

            public void onClick(View view) {
                AlertDialog ok = new AlertDialog.Builder(TransActivity.this).setMessage("转账权限仍在放开，完成后再操作，请勿频繁操作，以免影响进度。")
                        .setNegativeButton("OK", (DialogInterface.OnClickListener) null)
                        .create();
                ok.show();
                ok.getButton( DialogInterface.BUTTON_NEGATIVE).setTextColor(Color.parseColor("#4A9888"));

            }
        });
        final TextView textView = (TextView) findViewById(R.id.tv2);
        ((EditText) findViewById(R.id.et_2)).addTextChangedListener(new TextWatcher() {
            /* class com.zhmc.myapplication.TransActivity.AnonymousClass2 */

            public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
            }

            public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
            }

            public void afterTextChanged(Editable editable) {
                String str = editable.toString();
                if (TextUtils.isEmpty(str)) {
                    textView.setText("");
                } else if (str.length() >= 9) {
                    textView.setText("中国银行");
                } else {
                    textView.setText("");
                }
            }
        });
    }
}
